package com.example.web.office_specifications.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author LS
 * @since 2024-05-16
 */
@Getter
@Setter
@TableName("office_specifications")
@ApiModel(value = "OfficeSpecifications对象")
public class OfficeSpecifications implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long parentId;

    private String remark;

    //下级菜单 children字段不属于表
    @TableField(exist = false)
    private List<OfficeSpecifications> children = new ArrayList<>();
}
